<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>User Map 数据展示</title>
    <style>
        body {
            font-family: 'Arial', sans-serif;
            background: linear-gradient(135deg, #74ebd5, #acb6e5);
            margin: 0;
            padding: 0;
            color: #333;
        }
        .container {
            max-width: 800px;
            margin: 50px auto;
            background: #fff;
            border-radius: 15px;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
            overflow: hidden;
        }
        .header {
            background: #007BFF;
            color: #fff;
            padding: 20px;
            text-align: center;
            font-size: 24px;
            font-weight: bold;
        }
        .content {
            padding: 30px;
        }
        .content h2 {
            font-size: 28px;
            margin-bottom: 20px;
            text-align: center;
        }
        .content ul {
            list-style: none;
            padding: 0;
        }
        .content ul li {
            background: #f9f9f9;
            margin: 10px 0;
            padding: 15px;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            font-size: 18px;
        }
        .footer {
            background: #f4f4f4;
            text-align: center;
            padding: 15px;
            font-size: 14px;
            color: #888;
        }
    </style>
</head>
<body>

<div class="container">
    <div class="header">
        User Map 数据展示
    </div>
    <div class="content">
        <h2>用户信息列表</h2>
        <ul>
            <jsp:useBean id="userMap" scope="request" type="java.util.Map"/>
            <c:forEach var="entry" items="${userMap}">
                <li>
                    <strong>${entry.key}</strong>: 姓名 - ${entry.value.name}, 年龄 - ${entry.value.age}, 城市 - ${entry.value.city}
                </li>
            </c:forEach>
        </ul>
    </div>
    <div class="footer">
        © 2025 用户展示系统
    </div>
</div>

</body>
</html>
